export const hasProperty = <T>(obj: T, key: PropertyKey): key is keyof T => {
    return obj != null && Object.prototype.hasOwnProperty.call(obj, key);
};
